export class Program {
  id: number = -1;
  name: string = '';
  title: string = '';
  begin_time: string = '';
  end_time: string = '';

  toString() {
    return Program.toString(this);
  }

  static toString(p: Program) {
    return `${p.id} ${p.name} ${p.title} ${p.begin_time} ${p.end_time}`;
  }
}

export class ProgramType {
  id: number = -1;
  name: string = '';
  color: string = '';
}

export class Tag {
  id: number = -1;
  name: string = '';
  begin_time: string = '';
  end_time: string = '';
  note: string = '';

  toString() {
    return Tag.toString(this);
  }

  static toString(t: Tag) {
    return `${t.id} ${t.name} ${t.begin_time} ${t.end_time} ${t.note}`;
  }
}

export class TagType {
  id: number = -1;
  name: string = '';
  color: string = '';
}
